/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;


import dominio.Serie;
import java.util.Set;

/**
 *
 * @author jair
 */
public class SerieDAO extends GenericDAO {

     public int inserirSerie(Serie serie){
        salvar(serie);
        return serie.getId();
    }
    
    public void apagarSerie(Serie serie){
        remover(serie);
    }
    
    public void atualizarSerie(Serie serie){
        atualizar(serie);
    }
    
    public Set<Serie> getSeries(){
        return getLista(Serie.class,"select m from Serie m");
    }

}
